<script>
function getParameter(paraStr,url)
{
    var result = "";
    var str = "&" + url.split("?")[1];
    var paraName = paraStr + "=";
    if(str.indexOf("&"+paraName)!=-1)
    {
        if(str.substring(str.indexOf(paraName),str.length).indexOf("&")!=-1)
        {
            var TmpStr=str.substring(str.indexOf(paraName),str.length);
            result=TmpStr.substr(TmpStr.indexOf(paraName),TmpStr.indexOf("&")-TmpStr.indexOf(paraName)); 
        }
        else
        {
            result=str.substring(str.indexOf(paraName),str.length);
        }
    }
    else
    {
        result="";
    }
    return (result.replace("&",""));
}
var url="/room!index.jspa?"+getParameter("roomid", window.location.href);
window.location.href=url;
</script>